// 布局相关常量配置
import { getSystemConfig } from '../service/commonService';

// 获取系统配置
const systemConfig = getSystemConfig();

// 功能打开方式类型
export const FUNC_OPEN_TYPE = {
    CURRENT: 'current',  // 当前界面打开
    NEWTAB: 'newtab'     // 浏览器新tab打开
};

// 功能打开方式选项
export const FUNC_OPEN_OPTIONS = [
    { label: '当前界面打开', value: FUNC_OPEN_TYPE.CURRENT },
    { label: '浏览器新tab打开', value: FUNC_OPEN_TYPE.NEWTAB }
];

export const LAYOUT_CONSTANTS = {
    // 系统信息
    SYSTEM_NAME: systemConfig.systemName,
    LOGO_SRC: systemConfig.logoSrc,


    // 用户信息
    DEFAULT_USER_NAME: systemConfig.defaultUserName,
    DEFAULT_USER_AVATAR: systemConfig.defaultUserAvatar,
    DEFAULT_USER_ORGANIZATION: systemConfig.defaultUserOrganization,

    // 响应式断点
    BREAKPOINTS: {
        MOBILE_PC_THRESHOLD: 768,  // 移动端和PC端的分割值
    }
}


export const QuickActionsItems = [
    {
        "label": "刷新",
        "shortcuts": ["Alt", "F5"],
        "icon": "icon-t-refresh",
        "keyCode": "ALT+F5"
    },
    {
        "label": "关闭",
        "shortcuts": ["Alt", "C"],
        "icon": "icon-t-Close",
        "keyCode": "ALT+67"
    },
    {
        "label": "全屏",
        "shortcuts": ["F11"],
        "icon": "icon-t-fullscreen",
        "keyCode": "F11"
    },
    {
        "label": "功能最大化",
        "shortcuts": ["Ctrl", "F1"],
        "icon": "icon-t-maximize1",
        "keyCode": "CTRL+F1"
    }
]

// 导出单独的常量供直接使用
export const {
    SYSTEM_NAME,
    LOGO_SRC,
    LOGO_ALT,
    DEFAULT_USER_NAME,
    DEFAULT_USER_AVATAR,
    DEFAULT_USER_ORGANIZATION,
    BREAKPOINTS
} = LAYOUT_CONSTANTS